//
//  AddBankCardTableViewCell.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/6.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "AddBankCardTableViewCell.h"

@interface AddBankCardTableViewCell ()
{
    GLGWLabel *leftLab;
}
@end

@implementation AddBankCardTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        GLGWLabel *lab = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:self];
        lab.text = @"姓名";
        [lab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView).offset(kHeightProportion_In_iPhoneTriploid(15));
            make.centerY.equalTo(self.contentView.mas_centerY);
        }];
        leftLab = lab;
        
        GLGWTextField *textFiled = [[GLGWTextField alloc] initTitlePlaceholder:@"请输入银行开卡人姓名" theFont:SYSTEMFONT(14) theTitColor:kColor_Rule_Black inSuperView:self.contentView];
        textFiled.textAlignment = NSTextAlignmentRight;
        [textFiled mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(lab.mas_right);
            make.right.equalTo(self.contentView.mas_right).offset(-kHeightProportion_In_iPhoneTriploid(15));
            make.centerY.equalTo(lab.mas_centerY);
        }];
        self.textFild = textFiled;
        
        [self hiderLine:NO];
        [self setSepartionLineWith:lineModel_Half];
    }
    return self;
}

- (void)setTextFild:(GLGWTextField *)textFild
{
    _textFild = textFild;
}

- (void)setLeftStr:(NSString *)leftStr
{
    _leftStr = leftStr;
    leftLab.text = leftStr;
}

@end
